package com.bdd.model.bo;

import com.bdd.model.bo.order.OrderItemListBO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.Date;
import java.util.List;

@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class OrderBO {

    private Integer orderId;

    /**
     * 总金额
     */
    @ApiModelProperty(value="总金额")
    private Double orderPrice;

    /**
     * 总折扣金额
     */
    @ApiModelProperty(value="总折扣金额")
    private Double discountAmount;

    @ApiModelProperty(value="订单时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date time;

    List<OrderItemListBO> cloth;
}
